/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.approval.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 描述: 案件文书待审批记录表 case_approval_wait_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年02月15日
 */
@Data
@Table(name = "upcase.case_approval_wait_record")
public class CaseApprovalWaitRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 标题
     */
    @Column(name = "approval_title")
    private String approvalTitle;
    /**
     * 审批类型1:案件,2:裁执分离
     */
    @Column(name = "approval_type")
    private String approvalType;
    /**
     * 提交人名称
     */
    @Column(name = "add_user_name")
    private String addUserName;

    /**
     * 提交人id
     */
    @Column(name = "add_user_id")
    private String addUserId;

    /**
     * 提交时间
     */
    @Column(name = "add_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;

    /**
     * 当前环节审批期限
     */
    @Column(name = "approval_current_limit_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Integer approvalCurrentLimitTime;

    /**
     * 当前环节审批截止日期
     */
    @Column(name = "approval_current_planend_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date approvalCurrentPlanendTime;

    /**
     * 审批状态：发起申请、审批通过、审批退回、撤销、转交
     */
    @Column(name = "approval_status")
    private String approvalStatus;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 文书id
     */
    @Column(name = "document_id")
    private String documentId;

    /**
     * 审批人
     */
    @Column(name = "approval_user_name")
    private String approvalUserName;

    /**
     * 审批人id 多人审批id逗号分隔
     */
    @Column(name = "approval_user_id")
    private String approvalUserId;

    /**
     * 审批序号
     */
    @Column(name = "approval_num")
    private String approvalNum;

    /**
     * 审批流关系表id
     */
    @Column(name = "flow_relation_id")
    private String flowRelationId;

    /**
     * 审批单位名称
     */
    @Column(name = "approval_org_name")
    private String approvalOrgName;

    /**
     * 审批单位编码
     */
    @Column(name = "approval_org_code")
    private String approvalOrgCode;
    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;

    /**
     * 案件副流程id
     */
    @Column(name = "case_assist_id")
    private String caseAssistId;
    /**
     * 是否是否自动审批; 1 自动审批 0 非自动审批
     */
    @Column(name = "is_auto_approval")
    private String isAutoApproval;
    /**
     * 自动审批时间
     */
    @Column(name = "auto_time")
    private String autoTime;

    /**
     * 是否修改审批;1 是,0 否
     */
    @Column(name = "is_edit_approval")
    private String isEditApproval;
    /**
     * 审批文书id
     */
    @Column(name = "doc_id")
    private String docId;
    /**
     * 是否合并审批；1 是 0否
     */
    @Column(name = "is_merge")
    private String isMerge;


    private static final long serialVersionUID = 1L;


}